{% extends 'userCenterTemplate.html' %}

{% load staticfiles %}

{% block title %}个人中心 - 慕学在线网{% endblock %}

{% block userCenterTag %}我收藏的机构{% endblock %}

{% block right %}
<div class="right" >
            <div class="personal_des Releasecont">
                <div class="head">
                    <h1>我的收藏</h1>
                </div>
            </div>
            <div class="personal_des permessage">
                <div class="head">
                    <ul class="tab_header messagehead">
                        <li {% ifequal request.path|slice:"24" "/users/userCenterFavOrg/" %}class="active"{% endifequal %}>
                            <a href="{% url 'users:userCenterFavOrg' %}">课程机构</a>
                        </li>
                        <li {% ifequal request.path|slice:"28" "/users/userCenterFavTeacher/" %}class="active"{% endifequal %}>
                            <a href="{% url 'users:userCenterFavTeacher' %}">授课教师 </a>
                        </li>
                        <li {% ifequal request.path|slice:"27" "/users/userCenterFavCourse/" %}class="active"{% endifequal %}>
                            <a href="{% url 'users:userCenterFavCourse' %}">公开课程</a>
                        </li>
                    </ul>
                </div>
                <div class="messagelist">
                {% for org in orgs %}
                    <div class="messages butler_list company company-fav-box">
                        <dl class="des fr">
                            <dt>
                                <a href="{% url 'orgs:orgHome' org.id %}">
                                    <img width="160" height="90" src="{{ MEDIA_URL }}{{ org.image }}"/>
                                </a>
                            </dt>
                            <dd>
                                <h1><a href="{% url 'orgs:orgHome' org.id %}">{{ org.name }}</a></h1>
                                <div class="pic fl" style="width:auto;">
                                    <img src="{% static 'images/authentication.png' %}"/>
                                    <img src="{% static 'images/gold.png' %}"/>
                                </div>
                                <span class="c8 clear">{{ org.address }}</span>
                                <div class="delete jsDeleteFav_org" data-favid="1"></div>
                            </dd>
                        </dl>
                    </div>
                {% endfor %}

                </div>
            </div>
        </div>
{% endblock %}

